export enum SearchType {
  Select,
  MultiSelect,
  Input,
  Date,
  DateRange,
  DateTimeRange,
  // 区间
  Interval
}

export enum ValueType {
  Array,
  CommaSeparated
}

export interface SearchParam {
  readonly label: string
  readonly key: string
  // Date类型时用到
  readonly keys?: string[]
  value: string | number | string[] | number[]
  // 用于展示 已筛选出来的标签内容
  tagValue?: string | number | string[] | number[]
  // 值的类型 用于MultiSelect(下拉多选) 最终的值是用数组还是逗号分隔的字符串
  valueType?: ValueType
  options?: any[]
  readonly placeholder?: string
  readonly type: SearchType
  readonly default?: boolean
  readonly permission?: string
  hide?: boolean
}
